package com.ys.erp.stage_shop_service.bean.condition;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @author minamiyama
 * @date 2025/6/18
 */
@Data
public class ShopCondition {

    /**
     * 更新支付宝分账设置请求参数
     */
    @Data
    @Schema(description = "更新支付宝分账设置")
    public static class UpdateZfbSeparateAccountCon {
        
        /**
         * 店铺编码
         */
        @NotBlank(message = "店铺编码不能为空")
        @Schema(description = "店铺编码")
        private String shopCode;

        @Schema(description = "支付宝名称")
        @NotBlank(message = "支付宝名称不能为空")
        private String zfbName;
        
        /**
         * 支付宝账户
         */
        @NotBlank(message = "支付宝账户不能为空")
        @Schema(description = "支付宝账户")
        private String zfbAccount;
        
        /**
         * 分账比例
         */
        @NotBlank(message = "分账比例不能为空")
        @Schema(description = "分账比例")
        private String zfbSeparateRatio;
        
        /**
         * 是否开启支付宝转账分账，0否1是
         */
        @NotNull(message = "是否开启分账不能为空")
        @Schema(description = "是否开启支付宝转账分账，0否1是")
        private Integer isOpenZfbSeparateAccount;
    }
} 